import matplotlib.pyplot as plt
import numpy as np


def DrawGraphics(Y):
    # 创建 x1、x2、x3、x4 的数组进行变量范围定义，否则报错
    X1 = np.linspace(3000, 14000, 100)
    X2 = np.linspace(1, 5, 100)
    X3 = np.linspace(1, 5, 100)
    X4 = np.linspace(7000, 14000, 100)
    X5 = np.linspace(-1, 1, 100)

    express = 'Y=' + Y

    # 绘制曲线
    plt.plot(X1, eval(Y), label=express)

    # 添加标题和坐标轴标签
    plt.title("Graph of Multiple Linear Regression")
    plt.xlabel("x1")
    plt.ylabel("y")

    # 显示图例
    plt.legend()

    # 显示图形
    plt.show()
